package com.lancoo.klgcourseware.ui.fragment.operate;

import com.lancoo.klgcourseware.base.BaseKlgFragment;
import com.lancoo.klgcourseware.ui.activity.KlgBasicTrainActivity;
import com.lancoo.klgcourseware.ui.activity.KlgIntermediateBasicTrainActivity;

/**
 * Created by pengmi on 2019/8/28 18:36
 * Description:
 */
public abstract class AlertBaseFragment extends BaseKlgFragment {


    protected void closeAlertOperate(){
        if(getActivity() instanceof KlgBasicTrainActivity){
            ((KlgBasicTrainActivity)getActivity()).clostAlertOperate();
        }else if(getActivity() instanceof KlgIntermediateBasicTrainActivity){
            ((KlgIntermediateBasicTrainActivity)getActivity()).clostAlertOperate();
        }
    }
}
